﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Loyalty.Core.Entities
{
    public class JobType
    {
        public virtual int Id { get; set; }

        public virtual string Title { get; set; }

        public virtual ICollection<ProfileJob> ProfileJobs { get; set; }

    }
}

namespace Loyalty.Core.Entities.Mapping
{
    public class JobTypeMap : EntityTypeConfiguration<JobType>
    {
        public JobTypeMap()
        {
            this.ToTable("JobType");
            this.HasKey(x => x.Id);

            this.Property(x => x.Title).HasMaxLength(300).HasColumnName("Title");
        }
    }
}